public class ChatIdSelectedButton : SelectableButton
{
	public ChatWindow.IdChatType idChat;

	public override void Select(bool select)
	{
		if (select && !selected && (bool)ChatWindow.instance && select)
		{
			ChatWindow.instance.IdChat = idChat;
			ChatWindow.instance.chatRoom.SwitchChat(idChat);
		}
		base.Select(select);
	}
}
